<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : jspName.jsp
    Description : 설명을 기술합니다.
    author ETLee
    since 2012. 6. 28.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 6. 28.     ETLee     최초 생성
--%>

<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%@ include file="/WEB-INF/jsp/com/include/doctype.jspf" %>
    <div class="boardlist-wrap">
    
        <div class="list-status-wrap">
    <c:choose>
        <c:when test="${resultList!=null}">
            <p class="list-status">Page <b><c:out value="${paginationInfo.currentPageNo}"/></b>/<c:out value="${paginationInfo.totalPageCount}"/></p>
            <p class="result-status"><b><c:out value="${paginationInfo.totalRecordCount}"/></b>건의 검색결과가 있습니다.</p>
        </c:when>
        <c:otherwise>
            <p class="list-status">Page <b>0</b>/0</p>
            <p class="result-status"><b>0</b>건의 검색결과가 있습니다.</p>
        </c:otherwise>
    </c:choose>
        </div>
        <table summary="번호, 지점명, 전화번호, 상세정보, 위치">
        <caption>검색 결과 리스트</caption>
        <colgroup>
            <col width="8%" />
            <col />
            <col width="20%" />
            <col width="20%" />
            <col width="20%" />
        </colgroup>
        <thead>
        <tr>
            <th scope="col">NO</th>
            <th scope="col">지점명</th>
            <th scope="col">전화번호</th>
            <th scope="col">상세정보</th>
            <th scope="col">위치</th>
        </tr>
        </thead>
        <tbody>
    <c:choose>
        <c:when test="${paginationInfo.totalRecordCount > 0}">
    <c:set var="rowNum" value="${ paginationInfo.totalRecordCount - (paginationInfo.currentPageNo-1)* paginationInfo.pageSize}" />
    <c:forEach var="result" items="${ resultList }" varStatus="status">
        <tr>
            <td class="num">${ rowNum - status.index }</td>
            <td class="center"><c:out value="${result.brNm}"/></td>
            <td class="center"><c:out value="${result.brCcpc}"/></td>
            <td class="center">
                <a href="javascript:fnView('<c:out value="${ result.brCd }"/>','<c:out value="${ result.brScn }"/>', '0', '');"><img src="/kr/images/common/icon/icon_document.gif" alt="상세정보링크" /></a>
            </td>
            <td class="center">
                <a href="javascript:fnView('<c:out value="${ result.brCd }"/>','<c:out value="${ result.brScn }"/>', '2', '');"><img src="/kr/images/common/icon/icon_location.gif" alt="위치링크" /></a>
            </td>
        </tr>
    </c:forEach>
        </c:when>
        <c:otherwise>
        <tr>
            <td class="center" colspan="7">
                검색된 결과가 없습니다.
            </td>
        </tr>
        </c:otherwise>
    </c:choose>
        </tbody>
        </table>
    </div>
<c:if test="${paginationInfo.totalRecordCount > 0 }">
    <div class="paging">
        <able:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fnLinkPage" />
    </div>
</c:if>
